//
// NL3D_CComputeTileFar.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CRGBA;

public class NL3D_CComputeTileFar {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public NL3D_CComputeTileFar(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(NL3D_CComputeTileFar obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_NL3D_CComputeTileFar(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setSrcDiffusePixels(CRGBA value) {
    nel3dJNI.NL3D_CComputeTileFar_SrcDiffusePixels_set(swigCPtr, this, CRGBA.getCPtr(value), value);
  }

  public CRGBA getSrcDiffusePixels() {
    long cPtr = nel3dJNI.NL3D_CComputeTileFar_SrcDiffusePixels_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CRGBA(cPtr, false);
  }

  public void setSrcAdditivePixels(CRGBA value) {
    nel3dJNI.NL3D_CComputeTileFar_SrcAdditivePixels_set(swigCPtr, this, CRGBA.getCPtr(value), value);
  }

  public CRGBA getSrcAdditivePixels() {
    long cPtr = nel3dJNI.NL3D_CComputeTileFar_SrcAdditivePixels_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CRGBA(cPtr, false);
  }

  public void setSrcDeltaX(int value) {
    nel3dJNI.NL3D_CComputeTileFar_SrcDeltaX_set(swigCPtr, this, value);
  }

  public int getSrcDeltaX() {
    return nel3dJNI.NL3D_CComputeTileFar_SrcDeltaX_get(swigCPtr, this);
  }

  public void setSrcDeltaY(int value) {
    nel3dJNI.NL3D_CComputeTileFar_SrcDeltaY_set(swigCPtr, this, value);
  }

  public int getSrcDeltaY() {
    return nel3dJNI.NL3D_CComputeTileFar_SrcDeltaY_get(swigCPtr, this);
  }

  public void setSrcLightingPixels(CRGBA value) {
    nel3dJNI.NL3D_CComputeTileFar_SrcLightingPixels_set(swigCPtr, this, CRGBA.getCPtr(value), value);
  }

  public CRGBA getSrcLightingPixels() {
    long cPtr = nel3dJNI.NL3D_CComputeTileFar_SrcLightingPixels_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CRGBA(cPtr, false);
  }

  public void setSrcLightingDeltaY(int value) {
    nel3dJNI.NL3D_CComputeTileFar_SrcLightingDeltaY_set(swigCPtr, this, value);
  }

  public int getSrcLightingDeltaY() {
    return nel3dJNI.NL3D_CComputeTileFar_SrcLightingDeltaY_get(swigCPtr, this);
  }

  public void setDstPixels(CRGBA value) {
    nel3dJNI.NL3D_CComputeTileFar_DstPixels_set(swigCPtr, this, CRGBA.getCPtr(value), value);
  }

  public CRGBA getDstPixels() {
    long cPtr = nel3dJNI.NL3D_CComputeTileFar_DstPixels_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CRGBA(cPtr, false);
  }

  public void setDstDeltaX(int value) {
    nel3dJNI.NL3D_CComputeTileFar_DstDeltaX_set(swigCPtr, this, value);
  }

  public int getDstDeltaX() {
    return nel3dJNI.NL3D_CComputeTileFar_DstDeltaX_get(swigCPtr, this);
  }

  public void setDstDeltaY(int value) {
    nel3dJNI.NL3D_CComputeTileFar_DstDeltaY_set(swigCPtr, this, value);
  }

  public int getDstDeltaY() {
    return nel3dJNI.NL3D_CComputeTileFar_DstDeltaY_get(swigCPtr, this);
  }

  public void setSize(int value) {
    nel3dJNI.NL3D_CComputeTileFar_Size_set(swigCPtr, this, value);
  }

  public int getSize() {
    return nel3dJNI.NL3D_CComputeTileFar_Size_get(swigCPtr, this);
  }

  public void setAsmMMX(boolean value) {
    nel3dJNI.NL3D_CComputeTileFar_AsmMMX_set(swigCPtr, this, value);
  }

  public boolean getAsmMMX() {
    return nel3dJNI.NL3D_CComputeTileFar_AsmMMX_get(swigCPtr, this);
  }

  public NL3D_CComputeTileFar() {
    this(nel3dJNI.new_NL3D_CComputeTileFar(), true);
  }

}
